<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Test: Source/Window.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Test
   &#160;<span id="projectnumber">1.0.0.0</span>
   </div>
   <div id="projectbrief">A test</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_window_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Source/Window.h</div>  </div>
</div>
<div class="contents">
<a href="_window_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef WINDOW_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define WINDOW_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;SDL/SDL.h&quot;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;SDL/SDL_OpenGL.h&quot;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;<a class="code" href="_free_type_8h.html">FreeType.h</a>&quot;</span>
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="keyword">using namespace </span>std;
<a name="l00010"></a>00010 
<a name="l00014"></a>00014 <span class="keyword">class </span><a class="code" href="class_window.html">Window</a> {
<a name="l00015"></a>00015         <span class="keyword">public</span>:
<a name="l00019"></a><a class="code" href="class_window.html#acd23d331a69698c7a9b1d066aa05e1ea">00019</a>                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> GRID_SIZE = 8;
<a name="l00020"></a>00020 
<a name="l00030"></a>00030                 <a class="code" href="class_window.html">Window</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height);
<a name="l00031"></a>00031 
<a name="l00035"></a>00035                 <span class="keyword">virtual</span> ~<a class="code" href="class_window.html">Window</a>();
<a name="l00036"></a>00036 
<a name="l00042"></a>00042                 <span class="keywordtype">int</span> getX() <span class="keyword">const</span>;
<a name="l00043"></a>00043 
<a name="l00049"></a>00049                 <span class="keywordtype">int</span> getY() <span class="keyword">const</span>;
<a name="l00050"></a>00050 
<a name="l00056"></a>00056                 <span class="keywordtype">int</span> getWidth() <span class="keyword">const</span>;
<a name="l00057"></a>00057 
<a name="l00063"></a>00063                 <span class="keywordtype">int</span> getHeight() <span class="keyword">const</span>;
<a name="l00064"></a>00064 
<a name="l00070"></a>00070                 <span class="keywordtype">bool</span> isVisible() <span class="keyword">const</span>;
<a name="l00071"></a>00071 
<a name="l00079"></a>00079                 <span class="keywordtype">void</span> setLocation(<span class="keywordtype">int</span> newX, <span class="keywordtype">int</span> newY);
<a name="l00080"></a>00080 
<a name="l00088"></a>00088                 <span class="keywordtype">void</span> setSize(<span class="keywordtype">int</span> newWidth, <span class="keywordtype">int</span> newHeight);
<a name="l00089"></a>00089 
<a name="l00096"></a>00096                 <span class="keywordtype">void</span> setVisible(<span class="keywordtype">bool</span> newVisible);
<a name="l00097"></a>00097 
<a name="l00101"></a>00101                 <span class="keywordtype">void</span> draw();
<a name="l00102"></a>00102 
<a name="l00109"></a>00109                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> handleEvent(SDL_Event* event) = 0;
<a name="l00110"></a>00110 
<a name="l00111"></a>00111         <span class="keyword">protected</span>:
<a name="l00115"></a><a class="code" href="class_window.html#aa3be8f50b45a4f7b48ae66ae54885672">00115</a>                 <span class="keywordtype">int</span> <a class="code" href="class_window.html#aa3be8f50b45a4f7b48ae66ae54885672">x</a>;
<a name="l00116"></a>00116 
<a name="l00120"></a><a class="code" href="class_window.html#a1da567c448323caf7873fe4f1d4cf4d6">00120</a>                 <span class="keywordtype">int</span> <a class="code" href="class_window.html#a1da567c448323caf7873fe4f1d4cf4d6">y</a>;
<a name="l00121"></a>00121 
<a name="l00125"></a><a class="code" href="class_window.html#af5b1c436782cc9752d386493fbc5dc8c">00125</a>                 <span class="keywordtype">int</span> <a class="code" href="class_window.html#af5b1c436782cc9752d386493fbc5dc8c">width</a>;
<a name="l00126"></a>00126 
<a name="l00130"></a><a class="code" href="class_window.html#af0ac1732ca6b79a6f6b78aa344140514">00130</a>                 <span class="keywordtype">int</span> <a class="code" href="class_window.html#af0ac1732ca6b79a6f6b78aa344140514">height</a>;
<a name="l00131"></a>00131 
<a name="l00135"></a><a class="code" href="class_window.html#aa9ea35f9cd1885e9d88e7f6ccff50cfb">00135</a>                 <span class="keywordtype">bool</span> <a class="code" href="class_window.html#aa9ea35f9cd1885e9d88e7f6ccff50cfb">visible</a>;
<a name="l00136"></a>00136 
<a name="l00140"></a>00140                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawContent() = 0;
<a name="l00141"></a>00141 };
<a name="l00142"></a>00142 
<a name="l00143"></a>00143 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_window_8h.html">Window.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Wed Aug 17 2011 21:37:25 for Test by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5 </li>
   </ul>
 </div>


</body>
</html>
